<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'QQ') !== false) {
    $url = 'http://www.1686dy.com';
    header('location:'.$url);
}else{
?>
    <html lang="en"><head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>使用浏览器打开</title>
        <style type="text/css">#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}</style></head>
    <body>
    <style type="text/css">
        *{margin:0; padding:0;}
        img{max-width: 100%; height: auto;}
        .test{height: 600px; max-width: 600px; font-size: 40px;}
    </style>
    <div id="weixin-tip"><p><img src="live_weixin.png" alt="微信打开"></p></div>

    </body></html>
<?php
}
?>
